package cn.edu.sdjzu.xg.eagle.fastjon;

class Pagination {

    private int pageSize = 5;

    private int pageNo = 1;

    private int totalNum = 1;

    public Pagination() {
    }

    public Pagination(int pageSize, int pageNo) {

        if (pageNo > 0) {
            this.pageNo = pageNo;
        }
        if (pageSize > 0) {
            this.pageSize = pageSize;
        }
    }


    public int getPageSize() {
        return pageSize;
    }

    public int getPageNo() {
        return pageNo;
    }

    public int getTotalNum() {
        return totalNum;
    }
}